package cn.tedu._06article.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class UserArticleParam {
    @NotBlank(message = "标题不能为空白")
    @Schema(description = "标题", required = true)
    private String title;
    @Size(min = 10, max = 500, message = "内容长度必须在10-500之间")
    @Schema(description = "内容", required = true)
    private String content;
}
